#!/usr/bin/env python
# -*- coding=utf-8 -*-
 
# @File    :   flask_check.py
# @Version :   1.0
# @Author  :   xin
# @Time    :   2023/11/30 11:17:28
#Description:

import requests
from  tool.aes_utils import aes_encrypt
import time

def getAotbotSign():
    current_timestamp = int(time.time())
    t=aes_encrypt(str(current_timestamp))
    return t

if __name__ == "__main__":
    requst_header={"Aotbot-Sign":getAotbotSign()}
    res=requests.post("http://192.168.0.200:8886/account_list",headers=requst_header)
    print("-------------------")
    print(res.request.url)
    print(res.text)
    res=requests.post("http://192.168.0.200:5000/check_update",headers=requst_header)
    print("-------------------")
    print(res.request.url)
    print(res.text)
    res=requests.post("http://192.168.0.200:5000/robot_params_get",headers=requst_header)
    print("-------------------")
    print(res.request.url)
    print(res.text)
    res=requests.post("http://192.168.0.200:5001/check_update",headers=requst_header)
    print("-------------------")
    print(res.request.url)
    print(res.text)
    pass